﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoolCode.Search
{
    public enum SearchResultType
    {
        Unknown,
        Web,
        Video,
        Local,
        Blog,
        News,
        Book,
        Image,
        Patent
    }

    public class SearchResult
    {
        public string Url
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public string Content
        {
            get;
            set;
        }

        public DateTime UpdateDate
        {
            get;
            set;
        }

        public SearchResultType ResultType
        {
            get;
            set;
        }
    }

    public class SearchResults : CoolCode.Linq.PaginatedList<SearchResult>
    {
        public SearchResults(IQueryable<SearchResult> source, int pageIndex, int pageSize)
            : base(source, pageIndex, pageSize)
        {
        }

        public SearchResults(IEnumerable<SearchResult> source, int pageIndex, int pageSize)
            : base(source, pageIndex, pageSize)
        {
        }


    }
}
